package run.liuli.tran.activity.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import run.liuli.tran.activity.service.CouponService;

import javax.annotation.Resource;

@RestController
@RequestMapping("")
public class CouponController {

    @Resource
    private CouponService couponService;

    @GetMapping("/")
    public String getCouponAll(){
        return couponService.list().toString();
    }
}
